<%--
  Created by IntelliJ IDEA.
  User: A415
  Date: 2024/6/20
  Time: 14:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link href="//unpkg.com/layui@2.9.13/dist/css/layui.css" rel="stylesheet">
<div class="layui-card-header">
    下面是充数内容，为的是出现滚动条
</div>
<div class="layui-card-body">
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">ID</label>
            <div class="layui-input-block">
                <input type="text" name="" disabled placeholder="" autocomplete="off" class="layui-input " value="${requestScope.get("dataInfo").getId()}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户ID</label>
            <div class="layui-input-block">
                <input type="text" name="userId" lay-verify="required" placeholder="请输入用户ID" autocomplete="off" class="layui-input" value="${requestScope.get("dataInfo").getUserId()}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">操作时间</label>
            <div class="layui-input-block">
                ${requestScope.get("dataInfo").getCreateAt()}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">操作Ip</label>
            <div class="layui-input-block">
                ${requestScope.get("dataInfo").getCreateIp()}

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">操作类型</label>
            <div class="layui-input-block">
                ${requestScope.get("dataInfo").getOp()}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">设备信息</label>
            <div class="layui-input-block">
                ${requestScope.get("dataInfo").getUserAgent()}
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">

                <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">关闭</button>
            </div>
        </div>
    </form>
</div>
<script src="//unpkg.com/layui@2.9.13/dist/layui.js"></script>
<script src="${pageContext.request.contextPath}/frontend/layui/axios.min.js"></script>
<script>
    //js javascript
    layui.use(['form', 'laydate', 'util'], function(){
        var form = layui.form;
        var layer = layui.layer;
        var laydate = layui.laydate;
        var util = layui.util;
        // 绑定事件
        //
        form.on('submit(demo1)', function(data){

            parent.layer.close(parent.layer.getFrameIndex(window.name));  //关闭父级窗体
            parent.layui.table.reload('test',{page:{curr:1}});  //刷新父级表格

            return false; // 阻止表单默认提交行为
        });

    });

</script>
